package com.example.doctorstation.POJOMapper;

import java.util.List;

import com.example.doctorstation.POJOData.Record;
import org.apache.ibatis.annotations.*;

@Mapper
public interface RecordMapper {
    //获取病人所有病历的详细信息（不包括内容）
    @Select("call GetRecordInfoByPatientID(#{arg0})")
    public List<Record> getRecordInfo(Integer patientid);

    //获取病人所有病历的详细信息（不包括内容）
    @Select("call GetRecordConentByRecordInfoID(#{arg0})")
    public Record getRecordContent(Integer recordInfoID);

    //插入病历
    @Select("call InsertRecordInfoNRecordContent(#{arg0},#{arg1},#{arg2},#{arg3},#{arg4},#{arg5})")
    public void insertRecord(Integer patientID,String recordName,Integer recordInfoType,Integer doctorID,String content,int res);

    //更新病历
    @Select("call GetRecordConentByRecordInfoID(#{arg0},#{arg1},#{arg2},#{arg3},#{arg4})")
    public void updateRecord(Integer doctorID,Integer recordInfoID,String recordName,String content,int res);
}
